import React, { FC, Suspense } from 'react'
const SuspenseTest = React.lazy(() => import('./SuspenseTest'))

interface IProps {
    [key: string]: any
}

const Child: FC<IProps> = props => {
    console.log(props)
    const { msg } = props
    return (
        <Suspense fallback={<div>loading...</div>}>
            <div>{ msg }</div>
            <div>{ msg }</div>
            <SuspenseTest />
        </Suspense>
    )
}

export default Child
